package com.blog.service.log;

import com.blog.model.Logger;
import com.github.pagehelper.PageInfo;

/**
 * 用户请求日志的业务接口
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
public interface LogService {
    /**
     * 添加日志
     *
     * @param action
     * @param logData
     * @param ip
     * @param uid
     */
    void addLog(String action, String logData, String ip, Integer uid);

    /**
     * 获取日志
     *
     * @return
     */
    PageInfo<Logger> getLoggers(Integer pageNum, Integer pageSize);
}
